Returns the values of an Enum type (Type.IsEnum == true).
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
public static IList<T> GetEnumValues<T>( this Type enumType ) |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function GetEnumValues(Of T) ( _ enumType As Type _ ) As IList(Of T) |
Parameters
- enumType
- Type: System..::..Type
Enum type.
Type Parameters
- T
- Enum type.